// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_BPT_DRAW_BLUEPRINT_ITEM
// * CreateDate    : 2011/8/16 10:16:40
// * Creater       : CodeSmith
// * LastChangeDate: 2011/8/16 10:16:40
// * LastChanger   : 2011/8/16 10:16:40
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;

namespace ESOL.Common.Entity
{
	[Serializable]
	public partial class BptDrawBlueprintItemEntity : EntityBase
    {
        public BptDrawBlueprintItemTable TableSchema
        {
            get
            {
                return BptDrawBlueprintItemTable.Current;
            }
		}
		
		public BptDrawBlueprintItemEntity()
        {

        }
		
		public BptDrawBlueprintItemEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.ItemId = Convert.ToString(CommonFunctions.ToObject(dr["ITEM_ID"]));
			this.DrawBlueprintId = Convert.ToString(CommonFunctions.ToObject(dr["DRAW_BLUEPRINT_ID"]));
			this.BlueprintId = Convert.ToString(CommonFunctions.ToObject(dr["BLUEPRINT_ID"]));
			this.FinishedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["FINISHED_DATE"]));
			this.Status = Convert.ToString(CommonFunctions.ToObject(dr["STATUS"]));
			this.Remark = Convert.ToString(CommonFunctions.ToObject(dr["REMARK"]));
        }
		
		public BptDrawBlueprintItemEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.ItemId = Convert.ToString(CommonFunctions.ToObject(dr["ITEM_ID"]));
			this.DrawBlueprintId = Convert.ToString(CommonFunctions.ToObject(dr["DRAW_BLUEPRINT_ID"]));
			this.BlueprintId = Convert.ToString(CommonFunctions.ToObject(dr["BLUEPRINT_ID"]));
			this.FinishedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["FINISHED_DATE"]));
			this.Status = Convert.ToString(CommonFunctions.ToObject(dr["STATUS"]));
			this.Remark = Convert.ToString(CommonFunctions.ToObject(dr["REMARK"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return BptDrawBlueprintItemTable.Current;
            }
        }
		
		#region Perporty List
        public string ItemId
        {
            get { return Convert.ToString(GetData(BptDrawBlueprintItemTable.C_ITEM_ID)); }
            set { SetData(BptDrawBlueprintItemTable.C_ITEM_ID, value); }
        }
		
        public string DrawBlueprintId
        {
            get { return Convert.ToString(GetData(BptDrawBlueprintItemTable.C_DRAW_BLUEPRINT_ID)); }
            set { SetData(BptDrawBlueprintItemTable.C_DRAW_BLUEPRINT_ID, value); }
        }
		
        public string BlueprintId
        {
            get { return Convert.ToString(GetData(BptDrawBlueprintItemTable.C_BLUEPRINT_ID)); }
            set { SetData(BptDrawBlueprintItemTable.C_BLUEPRINT_ID, value); }
        }
		
        public DateTime FinishedDate
        {
            get { return Convert.ToDateTime(GetData(BptDrawBlueprintItemTable.C_FINISHED_DATE)); }
            set { SetData(BptDrawBlueprintItemTable.C_FINISHED_DATE, value); }
        }
		
        public string Status
        {
            get { return Convert.ToString(GetData(BptDrawBlueprintItemTable.C_STATUS)); }
            set { SetData(BptDrawBlueprintItemTable.C_STATUS, value); }
        }
		
        public string Remark
        {
            get { return Convert.ToString(GetData(BptDrawBlueprintItemTable.C_REMARK)); }
            set { SetData(BptDrawBlueprintItemTable.C_REMARK, value); }
        }
		
		#endregion
	}
	
	
}	

